package com.sls.web.manager.game.service;

import com.sls.web.manager.game.pojo.Tencent;
import com.sls.web.manager.game.pojo.tencent.TencentLoginInfo;
import com.sls.web.manager.game.querybean.TencentQuery;
import com.sls.web.manager.page.Pagination;
import com.sls.web.manager.pojo.UserInfoVO;

public interface TencentService {

	/**
	 * 确认审核
	 * 
	 * @param gameId
	 * @param userInfoVO
	 * @return
	 * @throws Exception
	 */
	public boolean confirmAudit(String supplierId, int priceRatio,
			UserInfoVO userInfoVO) throws Exception;

	public Tencent queryTencentByGoodsId(String goodsId, UserInfoVO userInfoVO)
			throws Exception;

	/**
	 * 分页查询
	 * 
	 * @param nutsNetQuery
	 * @param userInfoVO
	 * @return
	 * @throws Exception
	 */
	public Pagination<Tencent> queryTencent(TencentQuery tencentQuery,
			UserInfoVO userInfoVO) throws Exception;

	/**
	 * 腾讯商品添加
	 * 
	 * @param tencent
	 * @param userInfoVO
	 * @return
	 * @throws Exception
	 */
	public boolean addTencent(Tencent tencent, UserInfoVO userInfoVO)
			throws Exception;

	public boolean updateTencent(Tencent tencent, UserInfoVO userInfoVO)
			throws Exception;

	/**
	 * 查询订单
	 * 
	 * @param tencent
	 * @param userInfoVO
	 * @return
	 * @throws Exception
	 */
	public Tencent queryOrder(Tencent tencent, UserInfoVO userInfoVO)
			throws Exception;

	/**
	 * 腾讯登录
	 * 
	 * @param loginAccount
	 * @param extraCode
	 * @param passwordKey
	 * @param userInfoVO
	 * @throws Exception
	 */
	public TencentLoginInfo loginTencent(String loginAccount, String extraCode,
			String passwordKey, UserInfoVO userInfoVO) throws Exception;

	/**
	 * 获取验证码
	 * 
	 * @param path
	 * @param fileName
	 * @param userInfoVO
	 */
	public void saveExtraCode(String loginAccount, String path,
			String fileName, UserInfoVO userInfoVO);

}
